package com.software.loginregister.entity;

import java.io.Serializable;
public class NotificationItem {
    private Long id;
    private Long userId;
    private Long foodId;
    private String title;
    private String content;
    private String type;
    private boolean isRead;
    private String createdAt;
    private RefrigeratorFood food;
    @Override
    public String toString() {
        return "NotificationItem{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", isRead=" + isRead +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFoodId() {
        return foodId;
    }

    public void setFoodId(Long foodId) {
        this.foodId = foodId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public RefrigeratorFood getFood() {
        return food;
    }

    public void setFood(RefrigeratorFood food) {
        this.food = food;
    }

    // 构造方法
    public NotificationItem() {}

    // getter 和 setter 方法
    // ... 省略标准的 getter 和 setter ...

    public static class RefrigeratorFood {
        private Long id;
        private Long userId;
        private String foodName;
        private String foodImageUrl;
        private String official;
        private Integer storedHours;
        private String storageTime;
        private Integer status;
        private boolean isRead;


        public boolean isRead() {
            return isRead;
        }

        public void setRead(boolean read) {
            isRead = read;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Long getUserId() {
            return userId;
        }

        public void setUserId(Long userId) {
            this.userId = userId;
        }

        public String getFoodName() {
            return foodName;
        }

        public void setFoodName(String foodName) {
            this.foodName = foodName;
        }

        public String getFoodImageUrl() {
            return foodImageUrl;
        }

        public void setFoodImageUrl(String foodImageUrl) {
            this.foodImageUrl = foodImageUrl;
        }

        public String getOfficial() {
            return official;
        }

        public void setOfficial(String official) {
            this.official = official;
        }

        public Integer getStoredHours() {
            return storedHours;
        }

        public void setStoredHours(Integer storedHours) {
            this.storedHours = storedHours;
        }

        public String getStorageTime() {
            return storageTime;
        }

        public void setStorageTime(String storageTime) {
            this.storageTime = storageTime;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        // getter 和 setter 方法
        // ... 省略标准的 getter 和 setter ...
    }
}